package com.ruoyi.medical.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 抢单记录对象 meioms_grab_order
 * 
 * @author ruoyi
 * @date 2025-12-03
 */
@TableName("meioms_grab_order")
public class MeiomsGrabOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 抢单ID */
    @TableId
    private Long grabId;

    /** 工单ID */
    private Long workOrderId;

    /** 工程师ID */
    private Long engineerId;

    /** 抢单时间 */
    private Date grabTime;

    /** 抢单状态（0抢单中 1抢单成功 2抢单失败） */
    private String grabStatus;

    public void setGrabId(Long grabId)
    {
        this.grabId = grabId;
    }

    public Long getGrabId()
    {
        return grabId;
    }
    public void setWorkOrderId(Long workOrderId)
    {
        this.workOrderId = workOrderId;
    }

    public Long getWorkOrderId()
    {
        return workOrderId;
    }
    public void setEngineerId(Long engineerId)
    {
        this.engineerId = engineerId;
    }

    public Long getEngineerId()
    {
        return engineerId;
    }
    public void setGrabTime(Date grabTime)
    {
        this.grabTime = grabTime;
    }

    public Date getGrabTime()
    {
        return grabTime;
    }
    public void setGrabStatus(String grabStatus)
    {
        this.grabStatus = grabStatus;
    }

    public String getGrabStatus()
    {
        return grabStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("grabId", getGrabId())
            .append("workOrderId", getWorkOrderId())
            .append("engineerId", getEngineerId())
            .append("grabTime", getGrabTime())
            .append("grabStatus", getGrabStatus())
            .toString();
    }
}
